<template>
  <div>
    <a-select :default-value="value" style="width: 120px" @change="handleChange">
      <a-select-option :value="item.value" v-for="(item,index) in list" :key="index">
        {{item.title}}
      </a-select-option>
    </a-select>
  </div>
</template>

<script>
export default {
  name:"drawerSelect",
  props:{
    list:{
      type:Array,
      default:[]
    },
    value:{
      type:String,
    }
  },
  methods: {
    handleChange(e){
      this.$emit("update:value",e)
    }
  },
}
</script>

<style scoped>
  
</style>